FED-4308 Add dart2js output benchmarks#991
Merged
btr-rmconsole-6[bot] merged 16 commits intomasterfrom Feb 12, 2026
Merged
Conversation
9 tasks
This reverts commit 57e39e3. This didn't actually affect the size diff, since we compare the size of a single component, and not the size of the test case as a whole. As a result, all other code outside of the component is not factored into that size difference.
sydneyjodon-wk
approved these changes
Feb 11, 2026
| import 'dart2js_output/logging.dart'; | ||
| import 'dart2js_output/source.dart' as source; | ||
|
|
||
| Future<void> main(List<String> args) async { |
Contributor
There was a problem hiding this comment.
Does this need to be mentioned somewhere in the readme or wherever so we remember we have this debugging tool or do we not care that much?
Contributor
Author
There was a problem hiding this comment.
Mm good thought, but yeah I don't care that much haha. This and the other benchmark are pretty niche and on aspects of the code that don't get worked on much
Contributor
Author
|
@Workiva/release-management-p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
As part of implementing #989, I put together some "benchmarks" of dart2js code output that made it easier to inspect dart2js output and compare sizes.
These benchmarks will be helpful in future work when optimizing dart2js, so let's add them to the repo.
Changes
Add
benchmark/dart2js_output.dartwith various sub-commands:Remove redendant
_benchmarkfrom existingbenchmark/builder_parsing_benchmark.dartExample output of commands:
dart run benchmark/dart2js_output.dart get-code --no-verbosedart run benchmark/dart2js_output.dart compare-code --no-verbose --base '"5.4.6"'(comparing 5.4.6 to HEAD)Release Notes
Review
See CONTRIBUTING.md for more details on review types (+1 / QA +1 / +10) and code review process.
Please review:
QA Checklist
--verbose) and verify they work and have good--helpoutputMerge Checklist
While we perform many automated checks before auto-merging, some manual checks are needed: